package com.longmao.mapper;

import com.longmao.model.LongEmp;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by zrb on 17/7/2.
 */
public interface LongEmp2Mapper {


    /**
     * 返回的字段名,需要与表中的一致
     * @return
     */
    @Select("select id,emp_name as empName,create_time as createTime from long_emp")
    List<LongEmp> findAll();
}
